package com.wlz.provider.service;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.service.GenericException;
import org.apache.dubbo.rpc.service.GenericService;

/**
 *  泛化调用
 * @author wlz
 * @date 2022-07-13  12:20 上午
 */
@Slf4j
@Service(version = "generic", interfaceName = "com.wlz.api.DemoService")
public class GenericDemoService implements GenericService {
    @Override
    public Object $invoke(String s, String[] strings, Object[] objects) throws GenericException {
        System.out.println("执行了generic服务");
        return "执行的方法是" + s;
    }
}
